package com.giscloud.amp.dao;

import com.giscloud.amp.entity.AmpStaffData;
import com.giscloud.amp.entity.AmpStaffDataExample;
import com.giscloud.amp.entity.dto.AmpStaffDataDTO;
import com.giscloud.amp.entity.dto.AmpStaffOrgDTO;
import com.giscloud.amp.entity.vo.AmpStaffDataVO;
import com.giscloud.amp.entity.vo.AmpStaffSystemOrgVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface AmpStaffDataMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    long countByExample(AmpStaffDataExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    int deleteByExample(AmpStaffDataExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    int insert(AmpStaffData record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    int insertSelective(AmpStaffData record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    List<AmpStaffData> selectByExample(AmpStaffDataExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    int updateByExampleSelective(@Param("record") AmpStaffData record, @Param("example") AmpStaffDataExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table amp_staff_data
     *
     * @mbg.generated Tue Dec 04 17:43:38 CST 2018
     */
    int updateByExample(@Param("record") AmpStaffData record, @Param("example") AmpStaffDataExample example);

    List<Map> selectAreas(Map map);

    List<AmpStaffDataVO> selectAmpStaffData(AmpStaffDataDTO ampStaffDataDTO);

    List<AmpStaffSystemOrgVO> getOrgByStaffId(AmpStaffOrgDTO ampStaffOrgDTO);
}